JBoss Community Archive (Read Only)

Teiid 8.3

External Materialization

External materialized views cache their data in an external database system. External materialized views give the administrator full control over the loading and refresh strategies.

Since the actual physical cache for materialized views is maintained external to the Teiid system, there is no predefined policy for clearing and managing the cache. These policies should be defined and enforced by administrators of the Teiid system based on their needs.

Typical Usage Steps

insert into target\_table select * from matview option nocache

That however may be too simplistic because your index creation may be more performant if deferred until after the table has been created. Also full snapshot refreshes are best done to a staging table then swapping it for the existing physical table to ensure that the refresh does not impact user queries and to ensure that the table is valid prior to use.

JBoss.org Content Archive (Read Only), exported from JBoss Community Documentation Editor at 2020-03-13 12:37:31 UTC, last content change 2013-03-14 16:26:34 UTC.